#include "common.h>"

int arrangeCoins(int n);

int main()
{
	return 0;
}

int arrangeCoins(int n)
{
	int amount = 0, layer = 1;
	while ((a -= layer++) > 0)
		amount++;

	return n == 0 ? amount : amount - 1;
}
